﻿@model IEnumerable<DauGiaApp.Models.DauGia>

@{
    ViewBag.Title = "DangDauGia";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="@Url.Content("~/Content/style.css")" rel="stylesheet" type="text/css" />
@if (Model != null && Model.Count() != 0)
{
    foreach (var item in Model)
    {
   
        
   <div class="item_sanpham">
	    <h1 class="item_tensp"><a href="ChiTiet?id=@item.MaSanPham">@item.SanPham.TenSanPham</a></h1>
        <div class="khunganh">
	        <img class="anhdaihien" src="../../Content/images/@item.SanPham.LayAnhDaiDien()" alt="anh" />
        </div>
	    <h1 class="item_giahientai">Giá hiện tại: @item.SanPham.GiaHienTai VNĐ </h1>
	    <h1 class="item_ngayhethan">Ngày hết hạn: @item.SanPham.NgayHetHan.ToString()</h1>
	    <h1 class="item_giakhoidiem">Giá khởi điểm: @item.SanPham.GiaKhoiDiem VNĐ</h1>
	    <a href="#">   <img class="bid_btn" src="../../Content/images/bid_btn.jpg" alt="khoi di"/> </a>
        <div>
        <a href ="ChiTietDauGia?id=@item.MaDauGia">xem chi tiết </a>
        </div>	
    </div>
    }
}


